

// 引入组件 实现懒加载
const Home = ()=> import('@/pages/home')
const Catelist = ()=> import('@/pages/catelist')
const Categorylist = () => import("@/pages/catelist/categorylist")
const Worthbuy = ()=> import('@/pages/worthbuy')
const Cart = ()=> import('@/pages/cart')
const Personal = () => import('@/pages/personal')
const Login = () => import('@/pages/login')
const Detail = () => import("@/pages/detail");
const Search = () => import("@/pages/Search");

export default [
    // 重定向
    {
		path:'/',
		redirect:'/home'
    },
    {
        name:'home',
        path:'/home',
        component:Home
    },
    {
        name: 'catelist',
        path: '/catelist',
        component:Catelist,

    },
    {
        name: 'categorylist',
        path: '/categorylist',
        component: Categorylist,
    },
    {
        name: 'worthbuy',
        path: '/worthbuy',
        component:Worthbuy
    },
    {
        name: 'cart',
        path: '/cart',
        component:Cart
    },
    {
        name: 'personal',
        path: '/personal',
        component:Personal
    },
    {
        name: 'login',
        path: '/login',
        component: Login,
        meta:{isHiddenFooter:true}
    },
    {
        name: 'detail',
        path: '/detail',
        component:Detail
    }
]
